import Vue from 'vue'
import VueRouter from 'vue-router'
import CampusBinhai from '../views/CampusBinhai.vue.vue'
import Chashan from '../views/CampusChashan.vue'
import Chashan5 from '../views/Chashan5.vue'
import Chashan6 from '../views/Chashan6.vue'
import Chashan7 from '../views/Chashan7.vue'
import StudentSystem from '../views/StudentSystem.vue'
import CampusYueqing from '../views/CampusYueqing.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'CampusBinhai',
    component: CampusBinhai
  },
  {
    path: '/Chashan',
    name: 'Chashan',
    component: Chashan,
    children:[
      {path:'Chashan5',component:Chashan5},
      {path:'Chashan6',component:Chashan6},
      {path:'Chashan7',component:Chashan7}
    ]
  },
  {
    path: '/CampusYueqing',
    name: 'CampusYueqing',
    component: CampusYueqing
  },
  {
    path: '/StudentSystem',
    name: 'StudentSystem',
    component: StudentSystem
  }
]

const router = new VueRouter({
  routes
})

export default router
